package net.xo68.destiny.core.rocksdb;

/**
 * 序列化接口
 * @author wuxie
 * @version 2019-8-13
 * @param <T>
 */
public interface RocksSerializer<T> {

    byte[] serialize(T t) throws RocksSerializationException;

    T deserialize(byte[] bytes) throws RocksSerializationException;
}